package myky.com.doctorapp.contract;

import java.util.List;

import io.reactivex.Observable;
import myky.com.doctorapp.entity.LoginEntity;
import myky.com.doctorapp.entity.LoginSuccessEntity;
import myky.com.doctorapp.entity.NewConsultListBean;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.base.BaseView;

/**
 * @author Mr.li
 */
public interface PwLoginFragmentContract {
    interface Model {
        /**
         * 账号密码登录
         *
         * @return
         */
        Observable<BaseEntity<LoginSuccessEntity.PayLoadBean>> login();

        Observable<BaseEntity<List<NewConsultListBean.PayLoadBean.SpecialistConsultsBean>>> cgetlist(String size);

    }

    interface View extends BaseView<LoginEntity.PayLoadBean> {

        void loginFailed(String message);
        void loginSuccess(LoginSuccessEntity.PayLoadBean successEntity);
        void vlist(List<NewConsultListBean.PayLoadBean.SpecialistConsultsBean>  consultsBeanList);

    }

    interface Presenter {

        void login();
        void plist(String size);
    }
}
